import { _decorator, AudioClip, Component, Node, Prefab, SpriteFrame } from 'cc';
const { ccclass, property } = _decorator;

/**
 * 资源列表
 */
export const AssetList = {
    BundleName: "GameRes",
    Scene: {//场景
        LoginScene: "LoginScene",
        GameScene: "GameScene"
    },
    Pop: {//顶部弹窗
        GAMEEND: "GameEnd",
        GAMESET: "GameSet",
        GAMEGUIDE: "GameGuide",
        GAMESHOP:"GameShop"
    },
    Top: {//顶部
        NoTouch: "TopNoTouch",
        Prompt: "TopPrompt"
    },
    Prefabs: {//预设体
        GameSingleSprite: "game_singlesprite",
        GameSingleScore: "promptscore"
    },
    Config: {//配置

    },
    Asset: {//加载资源
        Prefabs: { path: "Prefab", type: Prefab },
        Sounds: { path: "Sound", type: AudioClip },
        SpriteFrames: { path: "SpriteFrame", type: SpriteFrame },
    },
    SpriteFrame: {//纹理
        Ele: "game_ele",
    }
}

export const Direction = {
    UP: "up",
    DOWN: "down",
    LEFT: "left",
    RIGHT: "right"
}

export const SpriteStype = "game_fruit"

@ccclass('Global')
export class Global {

    //是否是侧边栏
    static IsCebian: boolean = false;

    //是否是测试模式
    static IsDebug: boolean = false;

    //是否是微信环境
    static IsWx: boolean = false;

    //是否是抖音
    static IsDy: boolean = false;

    //游戏是否结束
    static IsEnd: boolean = false;

    //得分
    static HurtScore: number = 0;

    //喵咪卡牌奖励
    static CatGiveScore: number = 0;

    //超过伤害
    static HurtOver: number = 0;

    //播放提示消失动画时间
    static PlayDisTime: number = 0.1;
    //滑动事件
    static SlideTime: number = 0.1;
    static BrickDis: number = 85;

    static BrickWidth: number = 75;
    static BrickHeight: number = 75;

    static HorNum: number = 6;
    static VerNum: number = 6;

    //精灵种类
    static SpriteType: number = 3;

}


